package com.wondersgroup.insurance.datalibrary.request;

import com.hss.base.util.FastJSONHelper;
import com.hss.base.util.LogUtils;
import com.wondersgroup.insurance.datalibrary.aes.AES128Utils;

/**
 * Created by Administrator on 2018/5/7.
 */

public class ReqCreateParams {

    //验证码类别1为登录，2为注册，3为找回密码，4为重置密码
    public static String sendCodeParams(String mobile, int sendType, RequestBaseBean requestBase) {
        ReqSendCode reqSendCode = new ReqSendCode(requestBase);
        reqSendCode.mobile = mobile;
        reqSendCode.sendType = sendType;
        return serialParams(reqSendCode);
    }

    private static String serialParams(Object obj) {
        String str = null;
        String content = FastJSONHelper.serialize(obj);
        LogUtils.e(content);
        str = AES128Utils.encrypt(content);
        return str;
    }

}
